package com.dl.pojo;

import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @ProjectName: mcroservices
 * @Author: 86977
 * @Description: ${description}
 * @Date: 2021/6/23 11:13
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class CommonResult<T> implements Serializable {

  private Integer code;//返回状态码
  private String  message;//返回是否调用成功
  private  T data; //返回的数据

  public CommonResult(Integer code, String message) {
    this(code,message,null);
  }


  @Override
  protected void finalize() throws Throwable {
    super.finalize();
  }
}
